package net.haiyue.api.service;

import net.haiyue.api.entity.viewModel.EventViewModel;
import net.haiyue.api.entity.viewModel.EventViewModel4Request;
import net.haiyue.api.repository.ReportRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ReportService {
    @Resource
    private ReportRepository _repository;

    public  List<EventViewModel> detail(EventViewModel4Request param){
        return _repository.detail(param.getPid(),
                param.getMid(),param.getUid(),param.getTime_begin(),
                param.getTime_end());
    }

    public  List<EventViewModel> all(EventViewModel4Request param){
        List<EventViewModel> list=_repository.all(param.getTime_begin(),
                param.getTime_end(),param.getUid(),param.getPid(),param.getMid());
        return list;
    }
}
